package com.hopscotch.entity;

import com.github.pagehelper.PageInfo;
import lombok.Data;

import java.util.List;

@Data
public class UserListVO {
    private List<User> userList;
    private Integer pageNum;
    private Integer pageSize;
    private Long total;
    public UserListVO(List<User> userList, PageInfo<User> pageInfo){
        this.userList = userList;
        this.pageNum = pageInfo.getPageNum();
        this.pageSize = pageInfo.getPageSize();
        this.total = pageInfo.getTotal();
    }
}
